import java.util.Scanner;

public class Factory {
    public Vehicle welcome()
    {
        System.out.println("1、轿车    2、客车    3、卡车");
        Scanner in =new Scanner(System.in);
        int choice=in.nextInt();
        if(choice==1) return new Car();
        else if(choice==2) return new Bus();
        else return new Trunk();
    }
}
